package cn.lijigou.shopping.domain;

public class MLocation {
	public double lat, lng;
	public String city;
	public String address;
	public String source;

	public double getLat() {
		return lat;
	}

	public void setLat(double lat) {
		this.lat = lat;
	}

	public double getLng() {
		return lng;
	}

	public void setLng(double lng) {
		this.lng = lng;
	}

	public String getCity() {
		String[] citys = city.split("市");
		if (citys.length > 0) {
			city = citys[0];
		}
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getSource() {
		return source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public MLocation(double lat, double lng, String city, String address) {
		super();
		this.lat = lat;
		this.lng = lng;
		this.city = city;
		this.address = address;
	}

	public MLocation() {

	}

	@Override
	public String toString() {
		return "MLocation [address=" + address + ", city=" + city + ", lat="
				+ lat + ", lng=" + lng + ", source=" + source + "]";
	}

}
